package com.zhang.modules.user.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhang.common.jpa.entity.DTO;
import com.zhang.modules.user.entity.SysUser;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * A DTO for the {@link SysUser} entity
 */
@Data
@NoArgsConstructor
public class SysUserDto implements Serializable,DTO {

    @ApiModelProperty("id")
    private  String id;

    @ApiModelProperty("创建者")
    private  String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date createTime;

    @ApiModelProperty("用户账号")
    private  String userAccount;

    @ApiModelProperty("用户昵称")
    private  String nickName;

    @ApiModelProperty("用户类型")
    private  String userType;

    @ApiModelProperty("用户邮箱")
    private  String email;

    @ApiModelProperty("手机号码")
    private  String phonenumber;

    @ApiModelProperty("用户性别（0男 1女 2未知）")
    private  Character sex;

    @ApiModelProperty("帐号状态（0锁定 1启用）")
    private Character status;

    @ApiModelProperty("头像地址")
    private  String avatar;
}